Intent classification system

ABSTRACT

A data processing system analyzes a corpus of conversation data collected at an interactive conversation service to train an intent classification model. The intent classification model generates vectors based on the corpus of conversation data. A set of intents is selected and an intent seed input for each intent of the set of intents is input into the model to generate an intent vector corresponding to each intent. Vectors based on user inputs are generated and compared to the intent vectors to determine the intent.

CROSS REFERENCES

The present Application for Patent is a Continuation in Part of U.S.patent application Ser. No. 16/138,514 by Alexander et al., entitled“Intent Classification System,” filed Sep. 21, 2018, assigned to theassignee hereof.

FIELD OF TECHNOLOGY

The present disclosure relates generally to database systems and dataprocessing, and more specifically to intent classification system.

BACKGROUND

A cloud platform (i.e., a computing platform for cloud computing) may beemployed by many users to store, manage, and process data using a sharednetwork of remote servers. Users may develop applications on the cloudplatform to handle the storage, management, and processing of data. Insome cases, the cloud platform may utilize a multi-tenant databasesystem. Users may access the cloud platform using various user devices(e.g., desktop computers, laptops, smartphones, tablets, or othercomputing systems, etc.).

In one example, the cloud platform may support customer relationshipmanagement (CRM) solutions. This may include support for sales, service,marketing, community, analytics, applications, and the Internet ofThings. A user may utilize the cloud platform to help manage contacts ofthe user. For example, managing contacts of the user may includeanalyzing data, storing and preparing communications, and trackingopportunities and sales.

The cloud platform may support a chat system that allows a customersupport agent to live-chat with a customer. The chat may be utilized tohelp a customer regarding purchases, returns, order status, etc. Anagent, which uses the chat system to converse with the customer, mayperiodically reply with the same or similar responses to customerinputs, which may be time consuming, and thus expensive, for the agentor the agent's organization.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 illustrates an example of a system for intent classification thatsupports intent classification in accordance with aspects of the presentdisclosure.

FIG. 2 illustrates an example of a system that supports intentclassification in accordance with aspects of the present disclosure.

FIG. 3 illustrates an example of a model training system that supportsintent classification in accordance with aspects of the presentdisclosure.

FIG. 4 illustrates an example of a serving system that supports intentclassification in accordance with aspects of the present disclosure.

FIG. 5 illustrates an example of a data flow diagram that supportsintent classification in accordance with aspects of the presentdisclosure.

FIG. 6 illustrates an example of a user interface system that supportsintent classification in accordance with aspects of the presentdisclosure.

FIG. 7 shows a block diagram of an apparatus that supports intentclassification in accordance with aspects of the present disclosure.

FIG. 8 shows a block diagram of a intent classification module thatsupports intent classification in accordance with aspects of the presentdisclosure.

FIG. 9 shows a diagram of a system including a device that supportsintent classification in accordance with aspects of the presentdisclosure.

FIGS. 10 through 15 show flowcharts illustrating methods that supportintent classification system in accordance with aspects of the presentdisclosure.

DETAILED DESCRIPTION

An intent classification system described herein is trained on a corpusof unlabeled conversation data that is based on previous conversationsessions between users and agents. The system utilizes a word embeddingfunction trained on the corpus of conversation data and is used in alive conversation session to classify inputs by users with an intent.The system allows for intents to be derived based on a single input andusing a model trained in an unsupervised manner.

The intent classification system includes a training component thatgenerates training data based on the corpus of unlabeled conversationdata and trains a model for intent classification using the trainingdata. The training data is generated by creating a set ofcontext-response pairs and labels corresponding to each pair. Thecontext-response pairs include a context, which includes at least aninput by a user during a conversation session at an interactiveconversation service, and a response, which may a response by an agentduring the same conversation or a randomly selected response by anagent. When the context and response of a context-response pair areselected from the same conversation session, the label corresponding tothe context-response pair is set with a first value (e.g., “1,” whichindicates that the pair is true). When the context and the response of acontext-response pair are selected from different conversation sessions,the corresponding label is set with a second value (e.g., “0,” whichindicates that the pair is false). Each context and response of acontext-response pair is input into a word embedding function togenerate a context vector and a response vector. The context vector andresponse vector are compared to determine similarity, and the similarityand corresponding label are input into a loss-function to back-propagateerrors into the model as the model is trained.

In some cases, the intent classification system considers a window indetermining whether the values are true (e.g., “1”) or false (e.g.,“0”), which may assist in accurately training the model. For example, ifthe context and the response are selected from the same conversationsession, but outside a predetermined window of sequential inputs (e.g.,ten sequential inputs), then the value may be set to 0. Similarly, ifthe context and the response are selected from same conversation sessionbut within the window, the value may be set to 1. This implementationassumes that contexts and responses that are input closer to each otherare more informative than inputs that are further away. In other words,the “context” of the conversation may change as the conversation occurs.The window may be determined based on a number of inputs between thecontext and response (e.g., greater than a threshold is “outside” thewindow and under a threshold is “inside” the window). Similarly, thewindow may be a symmetrical or asymmetrical window (defined by a numberof sequential inputs) about the input or context input.

After the model is trained on an entity's (e.g., an organization's)corpus of conversation data, the entity may select a set of intents andan intent seed input corresponding to each intent of the set of intents.The trained model uses the intent seed inputs to generate intent vectorscorresponding to each intent of the set of intents. During a liveconversation session at the interactive conversation service, inputvectors are generated by the model based on inputs by a user. The inputvectors are compared to the intent vectors, and the most similar intentvector is selected and corresponds to the intent of the user's input.

In some cases, the model may suggest intent seed inputs for categories.After the model is trained, the model consists of highly structuredconversation data including a plurality of intent vectors. A clusteringprocess may cluster the plurality of intent vectors into a set ofclusters based on distance score calculations between each of theplurality of intent vectors. The clusters may correspond to thepotential intent categories based on the similarities between thevectors (e.g., the similarities of contexts on which the vectors arebased), and a user may assign an intent category to the clusteredvectors. From each cluster, the system may select one or more vectorsand recommend the associated input(s) for one or more intent seed inputsfor the cluster (e.g., category). The selected vector(s) may be vectorsthat are at or near the “center” of the cluster, for example, which maybe provide ideal candidates for the intent vectors for comparison tolater inputs. Accordingly, a user (or the model itself) may select oneor more intent seed inputs for each intent category based on vectorsselected from the clustered plurality of vectors.

Because the model is trained on unlabeled data, the model is trained inan unsupervised manner. Further, generation and use of the training dataprovides a highly informative model. For example, because the model istrained on historical chat data corresponding to an entity such as anorganization, the chat data is highly structured in that the chat datamay include highly similar chat context and responses. For example, chatdata corresponding to an online retailer may have many conversationscorresponding to order status, returns, etc. Furthermore, the data doesnot need to be labeled or classified by a user or administrator. Thechat data may be processed, and the model may be generated without anyor very little user interaction.

Further, because the model is generated on highly structured data,additional intents may be easily added without retraining the model.Additional intent seed inputs are input into the model, and theadditional intent vectors are generated. Further, all of the vectorsgenerated on the training data and on live data are highly informativefor different reasons. The vectors may be projected into two-dimensionalvectors and displayed on a plot. Certain filtering, zooming, label andselection techniques may be implemented such that an administrator mayvisualize and analyze the data.

Aspects of the disclosure are initially described in the context of anenvironment supporting an on-demand database service. Aspects of thedisclosure are further described with respect to a general systemdiagram, a model training system, a real-time use system, a process flowdiagram, and a display. Aspects of the disclosure are furtherillustrated by and described with reference to apparatus diagrams,system diagrams, and flowcharts that relate to intent classificationsystem.

FIG. 1 illustrates an example of a system 100 for cloud computing thatsupports intent classification in accordance with various aspects of thepresent disclosure. The system 100 includes cloud clients 105, contacts110, cloud platform 115, and data center 120. Cloud platform 115 may bean example of a public or private cloud network. A cloud client 105 mayaccess cloud platform 115 over network connection 135. The network mayimplement transfer control protocol and internet protocol (TCP/IP), suchas the Internet, or may implement other network protocols. A cloudclient 105 may be an example of a user device, such as a server (e.g.,cloud client 105-a), a smartphone (e.g., cloud client 105-b), or alaptop (e.g., cloud client 105-c). In other examples, a cloud client 105may be a desktop computer, a tablet, a sensor, or another computingdevice or system capable of generating, analyzing, transmitting, orreceiving communications. In some examples, a cloud client 105 may beoperated by a user that is part of a business, an enterprise, anon-profit, a startup, or any other organization type.

A cloud client 105 may interact with multiple contacts 110. Theinteractions 130 may include communications, opportunities, purchases,sales, or any other interaction between a cloud client 105 and a contact110. Data may be associated with the interactions 130. A cloud client105 may access cloud platform 115 to store, manage, and process the dataassociated with the interactions 130. In some cases, the cloud client105 may have an associated security or permission level. A cloud client105 may have access to certain applications, data, and databaseinformation within cloud platform 115 based on the associated securityor permission level, and may not have access to others.

Contacts 110 may interact with the cloud client 105 in person or viaphone, email, web, text messages, mail, or any other appropriate form ofinteraction (e.g., interactions 130-a, 130-b, 130-c, and 130-d). Theinteraction 130 may be a business-to-business (B2B) interaction or abusiness-to-consumer (B2C) interaction. A contact 110 may also bereferred to as a customer, a potential customer, a lead, a client, orsome other suitable terminology. In some cases, the contact 110 may bean example of a user device, such as a server (e.g., contact 110-a), alaptop (e.g., contact 110-b), a smartphone (e.g., contact 110-c), or asensor (e.g., contact 110-d). In other cases, the contact 110 may beanother computing system. In some cases, the contact 110 may be operatedby a user or group of users. The user or group of users may beassociated with a business, a manufacturer, or any other appropriateorganization.

Cloud platform 115 may offer an on-demand database service to the cloudclient 105. In some cases, cloud platform 115 may be an example of amulti-tenant database system. In this case, cloud platform 115 may servemultiple cloud clients 105 with a single instance of software. However,other types of systems may be implemented, including—but not limitedto—client-server systems, mobile device systems, and mobile networksystems. In some cases, cloud platform 115 may support CRM solutions.This may include support for sales, service, marketing, community,analytics, applications, and the Internet of Things. Cloud platform 115may receive data associated with contact interactions 130 from the cloudclient 105 over network connection 135, and may store and analyze thedata. In some cases, cloud platform 115 may receive data directly froman interaction 130 between a contact 110 and the cloud client 105. Insome cases, the cloud client 105 may develop applications to run oncloud platform 115. Cloud platform 115 may be implemented using remoteservers. In some cases, the remote servers may be located at one or moredata centers 120.

Data center 120 may include multiple servers. The multiple servers maybe used for data storage, management, and processing. Data center 120may receive data from cloud platform 115 via connection 140, or directlyfrom the cloud client 105 or an interaction 130 between a contact 110and the cloud client 105. Data center 120 may utilize multipleredundancies for security purposes. In some cases, the data stored atdata center 120 may be backed up by copies of the data at a differentdata center (not pictured).

Subsystem 125 may include cloud clients 105, cloud platform 115, anddata center 120. In some cases, data processing may occur at any of thecomponents of subsystem 125, or at a combination of these components. Insome cases, servers may perform the data processing. The servers may bea cloud client 105 or located at data center 120.

Cloud platform 115 may offer an on-demand chat service to the cloudclient 105. The cloud client 105 may utilize the chat service forcustomer support for the contacts 110, for example. In some exampleimplementations, a contact 110 may access the chat service via a browseror an application at a device of the contact 110. For example, a cloudclient 105 is an internet retailer, and customers of the internetretailer interact with agents of the internet retailer via the chatservice. In some cases, the chat service is a bot, which responds tocustomer inquiries without interaction by agent. The customers mayutilize the chat service to resolve issues or receive informationregarding orders, returns, product issues, etc. Because agents mayinteract with many different customers via the chat service, the agentsmay enter similar responses to many different, but similar, inquiries.Furthermore, in the chat bot scenario, the chat bot is configured todetermine an “intent” of a user inquiry so that the bot may transmit arelevant response. Thus, a cloud client 105 may predefine a set ofpotential intents such that the chat bot may respond with a relevantreply. Implementations described herein provide a system that classifiesa customer input into one of a set of intents provided by the cloudclient 105. The implementations are described with respect to a textchat system, but it should be understood that the implementations areapplicable to many types of interactive conversation service, such aschat bots, intelligent assistants, email systems, voice chat systems,etc.

In some intent classification systems, each intent of a set of intentsprovided by a cloud client require many (e.g., hundreds or thousands) ofexample inputs (e.g., phrases) that are classified to each intent. Forexample, for an “order status” intent, the cloud client may submit onethousand phrases that are manually selected and classified as an orderstatus intent. A machine learning model is trained on the set of intentsand set of example inputs for many intents. Such systems requirepotential inputs to be labeled (e.g., categorized) and thus aresupervised models. Furthermore, when such models are utilized for intentclassification, user inputs may be compared to many (e.g., thousands ormillions) of data points to determine the intent classification of theuser inputs. Such comparisons require significant processing resources.

In contrast, aspects of the disclosure described herein provide anintent classification system that is trained, in an unsupervised manner,on unlabeled historical conversation data. The historical conversationdata includes a series of inputs (e.g., by a user) and responses (e.g.,by a bot or agent) for many different conversations. A corpus ofhistorical chat data may correspond to a particular cloud client 105,and thus the chat data is highly structured. The chat data is highlystructure because chat conversations may cover a narrow range of topics(e.g., order status, receipt, return process). That is, a conversationsession may generally be related to a single intent. Each conversationsession of the chat data generally tends to relate to a narrow topic,and the conversation data includes defined relationships (e.g.,user/customer and agent). Furthermore, agent responses tend to berepetitive. Training data is generated using the historical chat data,and the training data is used to train an intent classification model.

The training model includes a training data generator, an embeddingcomponent, a vector comparison component, and a loss calculationcomponent. The training data generator generates the training data forthe model by generating a set of context-response pairs and a labelcorresponding to each context-response pair of the set based on thehistorical conversation data. The context of a context-response pair mayinclude at least an input by a user at an interactive conversationservice during a conversation session, and a response of acontext-response pair includes an input by an agent (or the bot) duringa conversation session. Accordingly, when training data is generated,context-response pairs generated from the same conversation sessions arelabeled with a first value (e.g., “1”, which indicates that the pair istrue and that the context and the response are likely related to thesame intent), and context-response pairs generated from differentconversation sessions are labeled with a second value (e.g., “0,” whichindicates that the pair is false and that the context and the responseare unlikely related to the same intent). The word embedding function istrained on the context-response pairs and generates a vector for eachcontext and response. Vectors corresponding to the context-responsepairs are evaluated for similarity and the loss is calculated (e.g., bythe loss calculation component) using the corresponding labels (e.g., 1or 0), which optimizes the model by back-propagating errors through aneural network (e.g., the word embedding function) as the model istrained. Accordingly, because the word embedding functions are trainedusing structured data, a highly informative vector space conversationsis generated, and the functions are trained to generate informativevectors.

As discussed herein, the training data generator may also consider awindow when determining the training data. For example, if the contextand the response are selected from the same conversation session, butoutside a predetermined window of sequential inputs (e.g., tensequential inputs), then the value may be set to 0. Similarly, if thecontext and the response are selected from same conversation session butwithin the window, the value may be set to 1. This implementationassumes that contexts and responses that are input closer to each otherare more informative than inputs that are further away. In other words,the “context” of the conversation may change as the conversation occurs.The window may be determined based on a number of inputs between thecontext and response (e.g., greater than a threshold is “outside” thewindow and under a threshold is “inside” the window). Similarly, thewindow may be a symmetrical or asymmetrical window (defined by a numberof sequential inputs) about the user input or context input.

After the model is trained on the cloud client's 105 corpus ofconversation data, the cloud client 105 selects a set of intents and anintent seed input corresponding to the set. The trained model uses theintent seed inputs to generate intent vectors corresponding to eachintent of the set of intents. During a live conversation session at theinteractive conversation service, input vectors are generated by themodel based on inputs by a user. The input vectors are compared to theintent vectors, and the most similar intent vector is selected andcorresponds to the intent of the user's input. The determined intent maybe utilized to trigger a response by a chat bot.

In some cases, the cloud client 105 selects the intent seed inputs forthe set of intents from recommended intent seed inputs. For example,after the model is trained, the model contains highly structured dataincluding a plurality if intent vectors. The vectors may be separatedinto clusters based on distance calculations between the plurality ofvectors. These clusters may correspond to each intent or category. Thesystem may then select at least one input vector from each category asthe basis for one or more recommended intent seed inputs for eachcluster. The inputs corresponding to the selected input vectors may berecommended to a user (e.g., the cloud client 105) for selection for theintent seed inputs for the categories. The selected vectors may beselected based on how “central” the vector is in the cluster. A morecentered vector may be an informative candidate for a particular intent.

Accordingly, aspects described herein provide an unsupervised intentclassification model that is trained on a corpus of existing andunlabeled data. Because new inputs are compared to intent vectors(generated using the trained model), the inputs are not compared to theentire vector space. Thus, significant processing resources are notrequired to compare input vectors to the entire vector space. An examplecloud client 105 may have ten intents. Thus, a new input may be comparedto ten intent vectors rather than an entire vector space correspondingto the historical chat data. Furthermore, the addition of a new intentby a cloud client 105 is easily added to the model. An intent seed inputcorresponding to the new intent is used to generate a new intent vector,and subsequent inputs by users are compared to the new intent vector aswell as previous intent vectors. Thus, the model is not required to beretrained on new data for the new intent.

It should be appreciated by a person skilled in the art that one or moreaspects of the disclosure may be implemented in a system 100 toadditionally or alternatively solve other problems than those describedherein. Furthermore, aspects of the disclosure may provide technicalimprovements to “conventional” systems or processes as described herein.However, the description and appended drawings only include exampletechnical improvements resulting from implementing aspects of thedisclosure, and accordingly do not represent all of the technicalimprovements provided within the scope of the claims.

In an example use of the system 100, a cloud client 105 elects toutilize the intent classification system. A corpus of historical chatdata of the cloud client 105 is analyzed to train the responserecommendation model. As will be described in more detail below, modeltraining requires very little or no input on the part of anadministrator. Once the model is trained, the cloud client 105 mayselect a set of intents and corresponding intent seed inputs. During useof the system by a user (e.g., a customer), vectors based on user inputsare generated using the model, and the resulting vectors are compared tointent vectors generated using the model and which correspond to theselected intents. The intent corresponding to the most similar intentvector is selected, and a response may be input into the interactiveconversation service based on the intent in a reply to the user.

FIG. 2 illustrates an example of a system 200 that supports intentclassification in accordance with aspects of the present disclosure. Thesystem 200 includes a user device 205, a client device 250, aninteractive conversation service 210, and an intent classification model220. The intent classification model 220, which may be an example of anintent classification module 715 of FIG. 7, includes a model trainingcontainer 235, a serving container 240, and a data store correspondingto a vector space 225. The model training container 235, which may be anexample of a model training container 310 of FIG. 3, includes componentsfor generating training data and training a word embedding function on acorpus of conversation data 245, which may be received from a cloudclient 105 of FIG. 1. In the process of training the word embeddingfunction, a plurality of vectors are generated corresponding to contextsand responses of context-response pairs generated for training data. Theplurality of vectors correspond to the vector space 225. The vectorspace 225 includes inputs corresponding to conversation sessions mappedto vectors of real numbers.

The client device 250 may be a cloud client 105 of FIG. 1 and mayprovide the corpus of conversation data 245 for training the model.After the model is trained, the client device 250 provides intent datavia a communication link 204. The intent data may include a set ofintent classifications and one or more intent seed inputs correspondingto each intent classification of the set of intent classifications. Forexample, an intent may be “order status” and a corresponding intent seedinput may be “what is the status of my order.” The intent seed inputsmay be based on inputs received at the interactive conversation service210. The trained word embedding function generates a set of intentvectors based on the intent seed inputs, such that each intent vectorcorresponds to an intent category.

In some cases, the intent data, including the one or more intent seedinputs corresponding to each intent category or classification, may beselected from recommended inputs generated by the intent classificationmodel 220. For example, the vector space 225 may be separated into aplurality of clusters based on distances calculated between the vectors.The distance calculations may use cosine similarity, Manhattan distance,Euclidean distance, or other vector distance calculation techniques. Theclusters may correspond to the intent categories. From each cluster, themodel 220 may select one or more vectors for the basis of an intent seedinput recommended. For example, the model 220 selects a vector that isnear the center of the cluster for the basis of an intent seed input forthe category associated with the cluster. The system 200 may recommendthe inputs corresponding to the selected vectors to a user (e.g., at theclient device 250) as recommended intent seed inputs for one or more ofthe categories. Thus, some of the set of intent vectors may be based onrecommended intent seed inputs pulled from the vector space 225.

The intent classification model 220 is linked to the interactiveconversation service 210 via communication link 202. The servingcontainer 240, which may be an example of a serving container 410described with respect to FIG. 4, receives conversation input datacorresponding to a user via the communication link 202. The conversationinput data may include an input by the user (e.g., a text inquirysubmitted to interactive conversation service 210) and may trigger theintent classification process. The serving container 240 generates aninput vector based on the received input and compares the input vectorto the set of intent vectors corresponding to the intent categories. Theserving container 240 selects the intent corresponding to the intentvector that is most similar to the input vector as the intent. Theintent classification model 220 outputs an intent classification, whichmay be utilized to determine a response to the user's input. Forexample, if the input is “where is my order and when will I receive it,”the input may be classified to the “order status” intent. Based on theorder status intent, the chat system may respond with “can you pleaseprovide an order number for your order?”

FIG. 3 illustrates an example of a model training system 300 thatsupports intent classification in accordance with aspects of the presentdisclosure. The system 300 includes a model training container 310,which uses a corpus of conversation data 305 to generate a responserecommendation model. The model training container 310 generatestraining data 340 based on the corpus of conversation data 305. Thetraining data 340 includes a set of context-response pairs and labelscorresponding to each context-response pair. To generate thecontext-response pairs, the training data generator 315 may select acontext corresponding to a conversation session. In some exampleimplementations, a conversation session corresponds to interactionbetween a user and an agent before the conversation is closed by theuser or the agent. The context includes an arbitrary input by a userduring a conversation session. For example, an input may correspond to astring of text that is typed by the user followed by a submission (e.g.,keying “enter” or pressing send). An input may include a single word orseries of words. A response from an agent during the same conversationsession as the input may be selected, or a response may be randomlyselected from the corpus of conversation data 305. When the responsecorresponds to a context in the same conversation session, the labelcorresponding to the context-response pair is given a first value (e.g.,“1,” which indicates that the pair is true or corresponds to the sameconversation session). When the response is randomly selected for acontext-response pair, the corresponding label is given a second value(e.g., “0,” which indicates that the pair is false or does notcorrespond to the same conversation session).

In some cases, a user or administrator may configure the model trainingsystem 300. For example, the user selects a percentage ofcontext-response pairs that are true (e.g., assigned a first value of“1”). Furthermore, different weights may be applied to context andresponse inputs, and the weights may be configurable. Otherconfiguration techniques are contemplated.

A plurality of context-response pairs and labels may be generated forthe training data 340. Some of the context-response pairs include truepairs that are selected from the same conversation session, and some ofthe context-response pairs are false pairs that are not selected fromthe same conversation session. The number of true pairs of the set maybe configured by an administrator before the data is trained.

Each context 302 and response 304 are input into an embedding component325. The context 302 and the response 304 may be pre-processed beforebeing processed by the embedding component 325. Such pre-processing maybe performed by the training data generator 315 and may includetokenizing the inputs. The embedding component 325 may be an example ofa component enabling neural networks that map text inputs (e.g., stringsof text) to fixed-length vectors.

The embedding component 325 generates a context vector 308 based on theinput context 302, and the embedding component 325 generates a responsevector 314 based on the input response 304. For each context-responsepair, a vector comparison component 330 compares the context vector 308and the response vector 314 and outputs a similarity score 312.Calculation of similarities between vectors as described herein may bebased on a variety of techniques including without limitation, cosinesimilarity, Manhattan distance, Euclidean distance, etc. The similarityscore 312 and the label 306 corresponding to the context-response pairare input to a loss calculation component 335. The loss calculationcomponent 335 implements a loss-function that optimizes the model byback-propagating errors through the neural network (e.g., the embeddingcomponent 325) as the model is trained.

FIG. 4 illustrates an example of a serving system 400 that supportsintent classification in accordance with aspects of the presentdisclosure. The system 400 includes a serving container 410 thatincludes, data pre-processors 415 and 420, a trained embedding component425, and a vector comparison component 430. The trained embeddingcomponent 425 may be an example of a trained embedding component 325 ofFIG. 3. Intent data 430 is input in to the serving container 410. Theintent data 430 includes a set of intents with corresponding intent seedinputs. The intent seed inputs may be phrases or example inputs that arecategorized to the corresponding intent. The data pre-processor 415processes the intent seed inputs and outputs intent seed data 402 forthe trained word embedding component 425. Such processing may includeparsing and tokenizing the input. The trained embedding component 425generates a set of intent vectors 406 based on the intent seed data 402.The intent vectors 406 are mappings of the intent seed data 402 intovectors of real numbers. The intent vectors 406 may be stored in anintent vector datastore for subsequent intent classification procedures.

The serving container 410 is connected to an interactive conversationservice that transmits user inputs 435 to the serving container 410. Theuser inputs 435 may be transmitted when the user enters a word or phraseinto the interactive conversation service, and receipt of the userinputs 435 may trigger the intent classification procedure. The userinputs are processed by the data pre-processor 420, which may be anexample of the data pre-processor 415. The data pre-processor 420outputs input data 404 to the trained embedding component 425. Thetrained embedding component 425 generates an input vector 408 based onthe input data 404. The vector comparison component 430 compares theinput vector 408 to the set of intent vectors 406. Based on thecomparison, the vector comparison component outputs an intentclassification 412, which corresponds to the intent vector 406 with thehighest similarity to the input vector 408. In some cases, the vectorcomparison component 430 identifies the intent vector based on a nearestneighbor technique. The intent may be used by the interactiveconversation service, or a supporting service, to transmit a reply tothe user input 435.

FIG. 5 illustrates an example of a data flow diagram 500 that supportsintent classification in accordance with aspects of the presentdisclosure. The data flow diagram 500 includes a device 505, which maybe an example of a cloud client 105 of FIG. 1, and a data processingsystem 510, which may be an example of the intent classification model220 of FIG. 2. At 520, the data processing system 510 performs an intentclassification model training procedure. The intent classification modeltraining procedure may be performed on a corpus of conversation data,which may be received from the device 505 (e.g., a cloud client 105).The intent classification model training procedure may includegenerating training data at 525. Generation of training data includesgeneration of a set of context-response pairs and a label correspondingto each context-response pair of the set. To generate a set ofcontext-response pairs, the data processing system 510 selects a context(e.g., a user input) and a response (e.g., an agent or bot input) foreach pair. If the context and the response of a pair are selected fromthe same conversation session, then a label corresponding to thecontext-response pair is assigned a first value (e.g., “1,” whichindicates that the pair is true). If the context and the response areselected from different conversation sessions (e.g., the response israndomly selected from the corpus), then the label corresponding to thecontext-response pairs is assigned a second value (e.g., “0,” whichindicates that the pair is false). The data processing system 510 maygenerate a plurality of context-response pairs, as described herein.

At 530, the data processing system 510 generates the intentclassification model by training the intent classification model on theset of context response pairs. Generation of the model includesgenerating context vectors for each context and response vectors foreach response for the set of context response pairs, comparing thecontext vector with the response vector for each context-response pairto calculate a similarity score, and calculating or determining the lossusing the label and the similarity score for each context-response pair.The loss is utilized to train the model as the data is processed.

At 535, the device 535 transmits a set of intent categories and intentseed inputs corresponding to each intent category to the data processingsystem 510. A cloud client 105 may select the intent categories andseeds. At 540, the data processing system generates intent vectors foreach intent of the set of intents. The intent vectors are generatedusing the trained intent classification model.

At 545, the data processing system 510 receives a conversation inputfrom the device 505. The conversation input may be received from aninteractive conversation service application executing at the device505, from another instance of the interactive conversation service, orfrom another location.

At 550, the data processing system 510 performs an intent classificationprocedure. The intent classification procedure may be triggered byreceipt of the conversation input at 545. The intent classificationprocedure includes generation of a conversation input vector at 555based on the conversation input. The conversation input vector isgenerated using the trained input classification model. At 560, the dataprocessing system 510 calculates similarity scores between theconversation input vector and each vector of the set of intent vectors.At 565, the data processing system 510 identifies an intent category ofthe set of intent categories corresponding to the intent vector havingthe highest similarity score with the conversation input vector.

FIG. 6 illustrates an example of a user interface system 600 thatsupports intent classification in accordance with aspects of the presentdisclosure. The user interface system 600 includes a vector space 605, avector projection component 610, a vector display component 615, and avector display 620. The vector space 605 is a data store including aplurality of words mapped to vectors including real numbers. The vectorsmay be multi-dimensional vectors that include many dimensions, such asfifty to hundreds of dimensions. The vectors of the vector space 605 aregenerated using the intent classification model (e.g., word embeddingcomponent) described herein and may be based on a corpus of historicalconversation data, data collected using the intent classification model,and live conversation data.

The vector projection component 610 projects high-dimensional vectors(e.g., vectors of the vector space 605) into two-dimensional vectors.The vector display component 615 generates rendering instructions fordisplaying the vectors in the vector display 620. The vector displaycomponent 615 may receive selections or instructions from a user todisplay vectors or a subset of vectors. The vector display 620 includesa two-dimensional representation of the vectors, which are displayed asplot points 602. In some examples, the vector display is centered on aplot point 602-a, which is a vector representation of the input “pleaselet me login.” The cluster of plot points includes vectors based oninputs that are similar to the “please let me login” input. A vectorrepresented by plot point 602-c is more similar to the “please let melogin” vector plot point 602-a than the vector represented by the plotpoint 602-b based on the distance between the plot points 602.

In some cases, the plot points 602 may be color coded to represent agentinputs or user inputs. In some cases, the plot points 602 may be shadedbased on a sentiment score, which is calculated using the user inputs.The vector display 620 may include buttons or selectors for selectingdifferent display features. The vector display component 615 receivessuch inputs and generates the vector display 620. A user may mouse overa plot point 602, and the user input corresponding to the plot point maybe displayed. For example, a mouse over plot point 602-d might trigger adisplay of “What are my login credentials?” In some cases, a user mightclick a plot point, and a conversation including the input correspondingto the plot may be displayed. In some cases, a user may be able toselect a threshold level of similarity to increase or decrease thedensity of displayed plot points 602.

In some cases, the vector projection component 610 may project themulti-dimensional vectors into single dimensional vectors. In suchcases, the vectors for a user input may be plotted against the vectorsfor an immediate agent response. Such a plot illustrates trends in userinputs and agent inputs. An administrator of a cloud client 105 mayutilize the user interface system 600 as a visualization tool for manydifferent chat instances.

FIG. 7 shows a block diagram 700 of an apparatus 705 that supportsintent classification in accordance with aspects of the presentdisclosure. The apparatus 705 may include an input module 710, an intentclassification module 715, and an output module 755. The apparatus 705may also include a processor. Each of these components may be incommunication with one another (e.g., via one or more buses). In somecases, the apparatus 705 may be an example of a user terminal, adatabase server, or a system containing multiple computing devices.

The input module 710 may manage input signals for the apparatus 705. Forexample, the input module 710 may identify input signals based on aninteraction with a modem, a keyboard, a mouse, a touchscreen, or asimilar device. These input signals may be associated with user input orprocessing at other components or devices. In some cases, the inputmodule 710 may utilize an operating system such as iOS®, ANDROID®,MS-DOS®, MS-WINDOWS®, OS/2®, UNIX®, LINUX®, or another known operatingsystem to handle input signals. The input module 710 may send aspects ofthese input signals to other components of the apparatus 705 forprocessing. For example, the input module 710 may transmit input signalsto the intent classification module 715 to support intent classificationsystem. In some cases, the input module 710 may be a component of aninput/output (I/O) controller 915 as described with reference to FIG. 9.

The intent classification module 715 may include an intentclassification model training component 720, an intent categoryinterface 725, an intent vector generating component 730, an inputreceiving interface 735, a conversation input generating component 740,a vector comparison component 745, and an intent categorizationcomponent 750. The intent classification module 715 may be an example ofaspects of the intent classification module 805 or 910 described withreference to FIGS. 8 and 9.

The intent classification module 715 and/or at least some of its varioussub-components may be implemented in hardware, software executed by aprocessor, firmware, or any combination thereof. If implemented insoftware executed by a processor, the functions of the intentclassification module 715 and/or at least some of its varioussub-components may be executed by a general-purpose processor, a digitalsignal processor (DSP), an application-specific integrated circuit(ASIC), a field-programmable gate array (FPGA) or other programmablelogic device, discrete gate or transistor logic, discrete hardwarecomponents, or any combination thereof designed to perform the functionsdescribed in the present disclosure. The intent classification module715 and/or at least some of its various sub-components may be physicallylocated at various positions, including being distributed such thatportions of functions are implemented at different physical locations byone or more physical devices. In some examples, the intentclassification module 715 and/or at least some of its varioussub-components may be a separate and distinct component in accordancewith various aspects of the present disclosure. In other examples, theintent classification module 715 and/or at least some of its varioussub-components may be combined with one or more other hardwarecomponents, including but not limited to an I/O component, atransceiver, a network server, another computing device, one or moreother components described in the present disclosure, or a combinationthereof in accordance with various aspects of the present disclosure.

The intent classification model training component 720 may generate,using a word embedding function, an intent classification modelincluding a set of input vectors corresponding to a corpus ofunclassified conversation data received at an interactive conversationagent.

The intent category interface 725 may receive a set of intent categoriesand an intent seed input for each intent category in the set of intentcategories.

The intent vector generating component 730 may generate, using the wordembedding function and the intent classification model, an intent vectorcorresponding to each intent category in the set of intent categories,where the intent vector generated for each intent category is based onthe intent seed input corresponding to the respective intent category.

The input receiving interface 735 may receive a conversation inputincluding a text string at an instance of the interactive conversationagent.

The conversation input generating component 740 may generate, using theword embedding function and the intent classification model, aconversation input vector based on the conversation input.

The vector comparison component 745 may calculate similarity scoresbetween the conversation input vector and each intent vectorcorresponding to each intent category.

The intent categorization component 750 may identify an intent categoryof the set of intent categories corresponding to the intent vectorhaving a highest similarity score with the conversation input vector.

The output module 755 may manage output signals for the apparatus 705.For example, the output module 755 may receive signals from othercomponents of the apparatus 705, such as the intent classificationmodule 715, and may transmit these signals to other components ordevices. In some specific examples, the output module 755 may transmitoutput signals for display in a user interface, for storage in adatabase or data store, for further processing at a server or servercluster, or for any other processes at any number of devices or systems.In some cases, the output module 755 may be a component of an I/Ocontroller 915 as described with reference to FIG. 9.

FIG. 8 shows a block diagram 800 of a intent classification module 805that supports intent classification in accordance with aspects of thepresent disclosure. The intent classification module 805 may be anexample of aspects of a intent classification module 715 or a intentclassification module 910 described herein. The intent classificationmodule 805 may include an intent classification model training component810, an intent category interface 815, an intent vector generatingcomponent 820, an input receiving interface 825, a conversation inputgenerating component 830, a vector comparison component 835, an intentcategorization component 840, an user input selector 845, an agent inputselector 850, a label assigning component 855, a context vectorgenerating component 860, a response vector generating component 865, aloss calculation component 870, an intent receiving interface 875, anuser interface 880, a vector projection component 885, a vectorprojection component 890, an audio data component 895, a speech to textcomponent 8100, and an intent seed input generator 8105. Each of thesemodules may communicate, directly or indirectly, with one another (e.g.,via one or more buses).

The intent classification model training component 810 may generate,using a word embedding function, an intent classification modelincluding a set of input vectors corresponding to a corpus ofunclassified conversation data received at an interactive conversationagent.

In some examples, the intent classification model training component 810may train the intent classification model on the set of context-responsepairs.

The intent category interface 815 may receive a set of intent categoriesand an intent seed input for each intent category in the set of intentcategories.

The intent vector generating component 820 may generate, using the wordembedding function and the intent classification model, an intent vectorcorresponding to each intent category in the set of intent categories,where the intent vector generated for each intent category is based onthe intent seed input corresponding to the respective intent category.

In some examples, the intent vector generating component 820 maygenerate, using the word embedding function and the intentclassification model, an additional intent vector based on theadditional seed input.

The input receiving interface 825 may receive a conversation inputincluding a text string at an instance of the interactive conversationagent.

In some examples, the input receiving interface 825 may receive anadditional conversation input at the interactive conversation agent.

The conversation input generating component 830 may generate, using theword embedding function and the intent classification model, aconversation input vector based on the conversation input.

In some examples, the conversation input generating component 830 maygenerate, using the word embedding function and the intentclassification model, an additional conversation input vector.

The vector comparison component 835 may calculate similarity scoresbetween the conversation input vector and each intent vectorcorresponding to each intent category.

In some examples, the vector comparison component 835 may calculatesimilarity scores for each context-response pair of the set ofcontext-response pairs by comparing the context vector and the responsevector of each context-response pair.

In some examples, the vector comparison component 835 may calculatesimilarity scores between the additional conversation input vector andeach intent vector corresponding to each intent category and theadditional intent vector corresponding to the additional category.

In some examples, the vector comparison component 835 may identify theintent vector based on a nearest neighbor technique.

The intent categorization component 840 may identify an intent categoryof the set of intent categories corresponding to the intent vectorhaving a highest similarity score with the conversation input vector.

In some examples, the intent categorization component 840 may identifyan intent category of the set of intent categories and the additionalintent category corresponding to an intent vector or the additionalintent vector having a highest similarity score with the additionalconversation input vector.

The user input selector 845 may select a user input from the corpus ofconversation data as a context for a context-response pair for a set ofcontext-response pairs.

The agent input selector 850 may select an agent input from the corpusof conversation data as a response for the context-response pair.

The label assigning component 855 may assign a first value to a labelcorresponding to the context-response pair based at least in part on theuser input and the agent input being selected from within a window in asame conversation session of the corpus of conversation data, the windowdefining a number of sequential inputs in the same conversation session.In some cases, the label assigning component 855 may assign a firstvalue to the label corresponding to the context-response pair based atleast in part on the user input and the agent input being selected fromthe same conversation session of the corpus of conversation data (e.g.,without regard to the window).

In some examples, the label assigning component 855 may assign a secondvalue to the label corresponding to the context-response pair based atleast in part on one of the user input and the agent input beingselected from different conversation sessions of the corpus ofconversation data and the user input and the agent input being selectedoutside the window in the same conversation session. In some cases, thelabel assigning component 855 may assign a second value to the labelcorresponding to the context-response pair based at least in part on theuser input and the agent input being selected from differentconversation sessions of the corpus of conversation data (e.g., withoutregard to the window).

The context vector generating component 860 may generate a contextvector for each context of the set of context-response pairs.

The response vector generating component 865 may generate a responsevector for each response of the set of context-response pairs.

The loss calculation component 870 may determine a loss for eachcontext-response pair of the set of context-response pairs based atleast on the similarity score and the label corresponding to eachcontext-response pair of the set of context-response pairs.

The intent receiving interface 875 may receive an additional intentcategory and additional seed input corresponding to the additionalintent category.

The user interface 880 may display the set of input vectors of theintent classification model on a user interface of a user device.

In some examples, the user interface 880 may display the graph at theuser interface of the user device.

The vector projection component 885 may project high dimensional inputvectors into two-dimensional vectors.

The vector projection component 890 may plot the two-dimensional vectorson a graph.

The audio data component 895 may receive audio data including voice dataat the interactive conversation agent.

The speech to text component 8100 may convert the audio data into theconversation input including the text string.

The intent seed input generator 8105 may separate the set of inputvectors into set of clusters based on distance score calculation betweeneach of the set of input vectors.

In some examples, the intent seed input generator 8105 may select atleast one input vector from each cluster of the set of clusters, each ofthe selected input vectors corresponding to a suggested intent seedinput, where one or more of the at least one intent seed input for eachintent category in the set of intent categories are selected from thesuggested intent seed inputs. In some cases, the suggested intent seedinputs are recommended to a user by transmitting an indication of eachof the suggested intent seed inputs to a user device, wherein one ormore of the at least one intent seed input for each intent category inthe set of intent categories are selected from the suggested intent seedinputs at the user device.

FIG. 9 shows a diagram of a system 900 including a device 905 thatsupports intent classification in accordance with aspects of the presentdisclosure. The device 905 may be an example of or include thecomponents of an analytical data store or an apparatus 705 as describedherein. The device 905 may include components for bi-directional datacommunications including components for transmitting and receivingcommunications, including an intent classification module 910, an I/Ocontroller 915, a database controller 920, memory 925, a processor 930,and a database 935. These components may be in electronic communicationvia one or more buses (e.g., bus 940).

The intent classification module 910 may be an example of a intentclassification module 715 or 805 as described herein. For example, theintent classification module 910 may perform any of the methods orprocesses described herein with reference to FIGS. 7 and 8. In somecases, the intent classification module 910 may be implemented inhardware, software executed by a processor, firmware, or any combinationthereof.

The I/O controller 915 may manage input signals 945 and output signals950 for the device 905. The I/O controller 915 may also manageperipherals not integrated into the device 905. In some cases, the I/Ocontroller 915 may represent a physical connection or port to anexternal peripheral. In some cases, the I/O controller 915 may utilizean operating system such as iOS®, ANDROID®, MS-DOS®, MS-WINDOWS®, OS/2®,UNIX®, LINUX®, or another known operating system. In other cases, theI/O controller 915 may represent or interact with a modem, a keyboard, amouse, a touchscreen, or a similar device. In some cases, the I/Ocontroller 915 may be implemented as part of a processor. In some cases,a user may interact with the device 905 via the I/O controller 915 orvia hardware components controlled by the I/O controller 915.

The database controller 920 may manage data storage and processing in adatabase 935. In some cases, a user may interact with the databasecontroller 920. In other cases, the database controller 920 may operateautomatically without user interaction. The database 935 may be anexample of a single database, a distributed database, multipledistributed databases, a data store, a data lake, or an emergency backupdatabase.

Memory 925 may include random-access memory (RAM) and read-only memory(ROM). The memory 925 may store computer-readable, computer-executablesoftware including instructions that, when executed, cause the processorto perform various functions described herein. In some cases, the memory925 may contain, among other things, a basic input/output system (BIOS)which may control basic hardware or software operation such as theinteraction with peripheral components or devices.

The processor 930 may include an intelligent hardware device, (e.g., ageneral-purpose processor, a DSP, a central processing unit (CPU), amicrocontroller, an ASIC, an FPGA, a programmable logic device, adiscrete gate or transistor logic component, a discrete hardwarecomponent, or any combination thereof). In some cases, the processor 930may be configured to operate a memory array using a memory controller.In other cases, a memory controller may be integrated into the processor930. The processor 930 may be configured to execute computer-readableinstructions stored in a memory 925 to perform various functions (e.g.,functions or tasks supporting intent classification system).

FIG. 10 shows a flowchart illustrating a method 1000 that supportsintent classification in accordance with aspects of the presentdisclosure. The operations of method 1000 may be implemented by ananalytical data store or its components as described herein. Forexample, the operations of method 1000 may be performed by a intentclassification module as described with reference to FIGS. 7 through 9.In some examples, an analytical data store may execute a set ofinstructions to control the functional elements of the analytical datastore to perform the functions described herein. Additionally oralternatively, an analytical data store may perform aspects of thefunctions described herein using special-purpose hardware.

At 1005, the analytical data store may generate, using a word embeddingfunction, an intent classification model including a set of inputvectors corresponding to a corpus of unclassified conversation datareceived at an interactive conversation agent. The operations of 1005may be performed according to the methods described herein. In someexamples, aspects of the operations of 1005 may be performed by anintent classification model training component as described withreference to FIGS. 7 through 9.

At 1010, the analytical data store may receive a set of intentcategories and at least one intent seed input for each intent categoryin the set of intent categories. The operations of 1010 may be performedaccording to the methods described herein. In some examples, aspects ofthe operations of 1010 may be performed by an intent category interfaceas described with reference to FIGS. 7 through 9.

At 1015, the analytical data store may generate, using the wordembedding function and the intent classification model, at least oneintent vector corresponding to each intent category in the set of intentcategories, where the intent vector generated for each intent categoryis based on the at least one intent seed input corresponding to therespective intent category. The operations of 1015 may be performedaccording to the methods described herein. In some examples, aspects ofthe operations of 1015 may be performed by an intent vector generatingcomponent as described with reference to FIGS. 7 through 9.

At 1020, the analytical data store may receive a conversation inputincluding a text string at an instance of the interactive conversationagent. The operations of 1020 may be performed according to the methodsdescribed herein. In some examples, aspects of the operations of 1020may be performed by an input receiving interface as described withreference to FIGS. 7 through 9.

At 1025, the analytical data store may generate, using the wordembedding function and the intent classification model, a conversationinput vector based on the conversation input. The operations of 1025 maybe performed according to the methods described herein. In someexamples, aspects of the operations of 1025 may be performed by aconversation input generating component as described with reference toFIGS. 7 through 9.

At 1030, the analytical data store may calculate similarity scoresbetween the conversation input vector and each intent vectorcorresponding to each intent category. The operations of 1030 may beperformed according to the methods described herein. In some examples,aspects of the operations of 1030 may be performed by a vectorcomparison component as described with reference to FIGS. 7 through 9.

At 1035, the analytical data store may identify an intent category ofthe set of intent categories corresponding to the intent vector having ahighest similarity score with the conversation input vector. Theoperations of 1035 may be performed according to the methods describedherein. In some examples, aspects of the operations of 1035 may beperformed by an intent categorization component as described withreference to FIGS. 7 through 9.

FIG. 11 shows a flowchart illustrating a method 1100 that supportsintent classification in accordance with aspects of the presentdisclosure. Specifically, FIG. 11 illustrates a method for generatingtraining data and training an intent classification model on thetraining data. The operations of method 1100 may be implemented by ananalytical data store or its components as described herein. Forexample, the operations of method 1100 may be performed by a intentclassification module as described with reference to FIGS. 7 through 9.In some examples, an analytical data store may execute a set ofinstructions to control the functional elements of the analytical datastore to perform the functions described herein. Additionally oralternatively, an analytical data store may perform aspects of thefunctions described herein using special-purpose hardware.

At 1105, the analytical data store may select a user input from thecorpus of conversation data as a context for a context-response pair fora set of context-response pairs. The operations of 1105 may be performedaccording to the methods described herein. In some examples, aspects ofthe operations of 1105 may be performed by an user input selector asdescribed with reference to FIGS. 7 through 9.

At 1110, the analytical data store may select an agent input from thecorpus of conversation data as a response for the context-response pair.The operations of 1110 may be performed according to the methodsdescribed herein. In some examples, aspects of the operations of 1110may be performed by an agent input selector as described with referenceto FIGS. 7 through 9.

At 1115, the analytical data store may assign a first value to a labelcorresponding to the context-response pair based at least in part on theuser input and the agent input being selected from within a window in asame conversation session of the corpus of conversation data, the windowdefining a number of sequential inputs in the same conversation session.The operations of 1115 may be performed according to the methodsdescribed herein. In some examples, aspects of the operations of 1115may be performed by a label assigning component as described withreference to FIGS. 7 through 9.

At 1120, the analytical data store may assign a second value to thelabel corresponding to the context-response pair based at least in parton one of the user input and the agent input being selected fromdifferent conversation sessions of the corpus of conversation data andthe user input and the agent input being selected from outside thewindow in the same conversation session. The operations of 1120 may beperformed according to the methods described herein. In some examples,aspects of the operations of 1120 may be performed by a label assigningcomponent as described with reference to FIGS. 7 through 9.

At 1125, the analytical data store may train the intent classificationmodel on the set of context-response pairs. The operations of 1125 maybe performed according to the methods described herein. In someexamples, aspects of the operations of 1125 may be performed by anintent classification model training component as described withreference to FIGS. 7 through 9.

At 1130, the analytical data store may generate a context vector foreach context of the set of context-response pairs. The operations of1130 may be performed according to the methods described herein. In someexamples, aspects of the operations of 1130 may be performed by acontext vector generating component as described with reference to FIGS.7 through 9.

At 1135, the analytical data store may generate a response vector foreach response of the set of context-response pairs. The operations of1135 may be performed according to the methods described herein. In someexamples, aspects of the operations of 1135 may be performed by aresponse vector generating component as described with reference toFIGS. 7 through 9.

At 1140, the analytical data store may calculate similarity scores foreach context-response pair of the set of context-response pairs bycomparing the context vector and the response vector of eachcontext-response pair. The operations of 1140 may be performed accordingto the methods described herein. In some examples, aspects of theoperations of 1140 may be performed by a vector comparison component asdescribed with reference to FIGS. 7 through 9.

At 1145, the analytical data store may determine a loss for eachcontext-response pair of the set of context-response pairs based atleast on the similarity score and the label corresponding to eachcontext-response pair of the set of context-response pairs. Theoperations of 1145 may be performed according to the methods describedherein. In some examples, aspects of the operations of 1145 may beperformed by a loss calculation component as described with reference toFIGS. 7 through 9.

FIG. 12 shows a flowchart illustrating a method 1200 that supportsintent classification in accordance with aspects of the presentdisclosure. The operations of method 1200 may be implemented by ananalytical data store or its components as described herein. Forexample, the operations of method 1200 may be performed by a intentclassification module as described with reference to FIGS. 7 through 9.In some examples, an analytical data store may execute a set ofinstructions to control the functional elements of the analytical datastore to perform the functions described herein. Additionally oralternatively, an analytical data store may perform aspects of thefunctions described herein using special-purpose hardware.

At 1205, the analytical data store may generate, using a word embeddingfunction, an intent classification model including a set of inputvectors corresponding to a corpus of unclassified conversation datareceived at an interactive conversation agent. The operations of 1205may be performed according to the methods described herein. In someexamples, aspects of the operations of 1205 may be performed by anintent classification model training component as described withreference to FIGS. 7 through 9.

At 1210, the analytical data store may receive a set of intentcategories and at least one intent seed input for each intent categoryin the set of intent categories. The operations of 1210 may be performedaccording to the methods described herein. In some examples, aspects ofthe operations of 1210 may be performed by an intent category interfaceas described with reference to FIGS. 7 through 9.

At 1215, the analytical data store may generate, using the wordembedding function and the intent classification model, at least oneintent vector corresponding to each intent category in the set of intentcategories, where the at least one intent vector generated for eachintent category is based on the at least one intent seed inputcorresponding to the respective intent category. The operations of 1215may be performed according to the methods described herein. In someexamples, aspects of the operations of 1215 may be performed by anintent vector generating component as described with reference to FIGS.7 through 9.

At 1220, the analytical data store may receive a conversation inputincluding a text string at an instance of the interactive conversationagent. The operations of 1220 may be performed according to the methodsdescribed herein. In some examples, aspects of the operations of 1220may be performed by an input receiving interface as described withreference to FIGS. 7 through 9.

At 1225, the analytical data store may generate, using the wordembedding function and the intent classification model, a conversationinput vector based on the conversation input. The operations of 1225 maybe performed according to the methods described herein. In someexamples, aspects of the operations of 1225 may be performed by aconversation input generating component as described with reference toFIGS. 7 through 9.

At 1230, the analytical data store may calculate similarity scoresbetween the conversation input vector and each intent vectorcorresponding to each intent category. The operations of 1230 may beperformed according to the methods described herein. In some examples,aspects of the operations of 1230 may be performed by a vectorcomparison component as described with reference to FIGS. 7 through 9.

At 1235, the analytical data store may identify an intent category ofthe set of intent categories corresponding to the intent vector having ahighest similarity score with the conversation input vector. Theoperations of 1235 may be performed according to the methods describedherein. In some examples, aspects of the operations of 1235 may beperformed by an intent categorization component as described withreference to FIGS. 7 through 9.

At 1240, the analytical data store may receive an additional intentcategory and additional seed input corresponding to the additionalintent category. The operations of 1240 may be performed according tothe methods described herein. In some examples, aspects of theoperations of 1240 may be performed by an intent receiving interface asdescribed with reference to FIGS. 7 through 9.

At 1245, the analytical data store may generate, using the wordembedding function and the intent classification model, an additionalintent vector based on the additional seed input. The operations of 1245may be performed according to the methods described herein. In someexamples, aspects of the operations of 1245 may be performed by anintent vector generating component as described with reference to FIGS.7 through 9.

FIG. 13 shows a flowchart illustrating a method 1300 that supportsintent classification in accordance with aspects of the presentdisclosure. The operations of method 1300 may be implemented by ananalytical data store or its components as described herein. Forexample, the operations of method 1300 may be performed by a intentclassification module as described with reference to FIGS. 7 through 9.In some examples, an analytical data store may execute a set ofinstructions to control the functional elements of the analytical datastore to perform the functions described herein. Additionally oralternatively, an analytical data store may perform aspects of thefunctions described herein using special-purpose hardware.

At 1305, the analytical data store may generate, using a word embeddingfunction, an intent classification model including a set of inputvectors corresponding to a corpus of unclassified conversation datareceived at an interactive conversation agent. The operations of 1305may be performed according to the methods described herein. In someexamples, aspects of the operations of 1305 may be performed by anintent classification model training component as described withreference to FIGS. 7 through 9.

At 1310, the analytical data store may receive a set of intentcategories and at least one intent seed input for each intent categoryin the set of intent categories. The operations of 1310 may be performedaccording to the methods described herein. In some examples, aspects ofthe operations of 1310 may be performed by an intent category interfaceas described with reference to FIGS. 7 through 9.

At 1315, the analytical data store may generate, using the wordembedding function and the intent classification model, at least oneintent vector corresponding to each intent category in the set of intentcategories, where the at least one intent vector generated for eachintent category is based on the at least one intent seed inputcorresponding to the respective intent category. The operations of 1315may be performed according to the methods described herein. In someexamples, aspects of the operations of 1315 may be performed by anintent vector generating component as described with reference to FIGS.7 through 9.

At 1320, the analytical data store may receive a conversation inputincluding a text string at an instance of the interactive conversationagent. The operations of 1320 may be performed according to the methodsdescribed herein. In some examples, aspects of the operations of 1320may be performed by an input receiving interface as described withreference to FIGS. 7 through 9.

At 1325, the analytical data store may generate, using the wordembedding function and the intent classification model, a conversationinput vector based on the conversation input. The operations of 1325 maybe performed according to the methods described herein. In someexamples, aspects of the operations of 1325 may be performed by aconversation input generating component as described with reference toFIGS. 7 through 9.

At 1330, the analytical data store may calculate similarity scoresbetween the conversation input vector and each intent vectorcorresponding to each intent category. The operations of 1330 may beperformed according to the methods described herein. In some examples,aspects of the operations of 1330 may be performed by a vectorcomparison component as described with reference to FIGS. 7 through 9.

At 1335, the analytical data store may identify an intent category ofthe set of intent categories corresponding to the intent vector having ahighest similarity score with the conversation input vector. Theoperations of 1335 may be performed according to the methods describedherein. In some examples, aspects of the operations of 1335 may beperformed by an intent categorization component as described withreference to FIGS. 7 through 9.

At 1340, the analytical data store may display the set of input vectorsof the intent classification model on a user interface of a user device.The operations of 1340 may be performed according to the methodsdescribed herein. In some examples, aspects of the operations of 1340may be performed by an user interface as described with reference toFIGS. 7 through 9.

FIG. 14 shows a flowchart illustrating a method 1400 that supportsintent classification in accordance with aspects of the presentdisclosure. The operations of method 1400 may be implemented by ananalytical data store or its components as described herein. Forexample, the operations of method 1400 may be performed by a intentclassification module as described with reference to FIGS. 7 through 9.In some examples, an analytical data store may execute a set ofinstructions to control the functional elements of the analytical datastore to perform the functions described herein. Additionally oralternatively, an analytical data store may perform aspects of thefunctions described herein using special-purpose hardware.

At 1405, the analytical data store may receive audio data includingvoice data at the interactive conversation agent. The operations of 1405may be performed according to the methods described herein. In someexamples, aspects of the operations of 1405 may be performed by an audiodata component as described with reference to FIGS. 7 through 9.

At 1410, the analytical data store may convert the audio data into theconversation input including the text string. The operations of 1410 maybe performed according to the methods described herein. In someexamples, aspects of the operations of 1410 may be performed by a speechto text component as described with reference to FIGS. 7 through 9.

At 1415, the analytical data store may generate, using a word embeddingfunction, an intent classification model including a set of inputvectors corresponding to a corpus of unclassified conversation datareceived at an interactive conversation agent. The operations of 1415may be performed according to the methods described herein. In someexamples, aspects of the operations of 1415 may be performed by anintent classification model training component as described withreference to FIGS. 7 through 9.

At 1420, the analytical data store may receive a set of intentcategories and at least one intent seed input for each intent categoryin the set of intent categories. The operations of 1420 may be performedaccording to the methods described herein. In some examples, aspects ofthe operations of 1420 may be performed by an intent category interfaceas described with reference to FIGS. 7 through 9.

At 1425, the analytical data store may generate, using the wordembedding function and the intent classification model, at least oneintent vector corresponding to each intent category in the set of intentcategories, where the at least one intent vector generated for eachintent category is based on the at least one intent seed inputcorresponding to the respective intent category. The operations of 1425may be performed according to the methods described herein. In someexamples, aspects of the operations of 1425 may be performed by anintent vector generating component as described with reference to FIGS.7 through 9.

At 1430, the analytical data store may receive a conversation inputincluding a text string at an instance of the interactive conversationagent. The operations of 1430 may be performed according to the methodsdescribed herein. In some examples, aspects of the operations of 1430may be performed by an input receiving interface as described withreference to FIGS. 7 through 9.

At 1435, the analytical data store may generate, using the wordembedding function and the intent classification model, a conversationinput vector based on the conversation input. The operations of 1435 maybe performed according to the methods described herein. In someexamples, aspects of the operations of 1435 may be performed by aconversation input generating component as described with reference toFIGS. 7 through 9.

At 1440, the analytical data store may calculate similarity scoresbetween the conversation input vector and each intent vectorcorresponding to each intent category. The operations of 1440 may beperformed according to the methods described herein. In some examples,aspects of the operations of 1440 may be performed by a vectorcomparison component as described with reference to FIGS. 7 through 9.

At 1445, the analytical data store may identify an intent category ofthe set of intent categories corresponding to the intent vector having ahighest similarity score with the conversation input vector. Theoperations of 1445 may be performed according to the methods describedherein. In some examples, aspects of the operations of 1445 may beperformed by an intent categorization component as described withreference to FIGS. 7 through 9.

FIG. 15 shows a flowchart illustrating a method 1500 that supportsintent classification system in accordance with aspects of the presentdisclosure. The operations of method 1500 may be implemented by ananalytical data store or its components as described herein. Forexample, the operations of method 1500 may be performed by a intentclassification module as described with reference to FIGS. 7 through 9.In some examples, an analytical data store may execute a set ofinstructions to control the functional elements of the analytical datastore to perform the functions described herein. Additionally oralternatively, an analytical data store may perform aspects of thefunctions described herein using special-purpose hardware.

At 1505, the analytical data store may generate, using a word embeddingfunction, an intent classification model including a set of inputvectors corresponding to a corpus of unclassified conversation datareceived at an interactive conversation agent. The operations of 1505may be performed according to the methods described herein. In someexamples, aspects of the operations of 1505 may be performed by anintent classification model training component as described withreference to FIGS. 7 through 9.

At 1510, the analytical data store may separate the set of input vectorsinto set of clusters based on distance score calculation between each ofthe set of input vectors. The operations of 1510 may be performedaccording to the methods described herein. In some examples, aspects ofthe operations of 1510 may be performed by an intent seed inputgenerator as described with reference to FIG. 8.

At 1515, the analytical data store may select at least one input vectorfrom each cluster of the set of clusters, each of the selected inputvectors corresponding to a suggested intent seed input, where one ormore of the at least one intent seed input for each intent category inthe set of intent categories are selected from the suggested intent seedinputs. In some cases, the suggested intent seed inputs are recommendedto a user by transmitting an indication of each of the suggested intentseed inputs to a user device, wherein one or more of the at least oneintent seed input for each intent category in the set of intentcategories are selected from the suggested intent seed inputs at theuser device. The operations of 1515 may be performed according to themethods described herein. In some examples, aspects of the operations of1515 may be performed by an intent seed input generator as describedwith reference to FIGS. 7 through 9.

At 1520, the analytical data store may receive a set of intentcategories and at least one intent seed input for each intent categoryin the set of intent categories. The operations of 1520 may be performedaccording to the methods described herein. In some examples, aspects ofthe operations of 1520 may be performed by an intent category interfaceas described with reference to FIGS. 7 through 9.

At 1525, the analytical data store may generate, using the wordembedding function and the intent classification model, at least oneintent vector corresponding to each intent category in the set of intentcategories, where the intent vector generated for each intent categoryis based on the at least one intent seed input corresponding to therespective intent category. The operations of 1525 may be performedaccording to the methods described herein. In some examples, aspects ofthe operations of 1525 may be performed by an intent vector generatingcomponent as described with reference to FIGS. 7 through 9.

At 1530, the analytical data store may receive a conversation inputincluding a text string at an instance of the interactive conversationagent. The operations of 1530 may be performed according to the methodsdescribed herein. In some examples, aspects of the operations of 1530may be performed by an input receiving interface as described withreference to FIGS. 7 through 9.

At 1535, the analytical data store may generate, using the wordembedding function and the intent classification model, a conversationinput vector based on the conversation input. The operations of 1535 maybe performed according to the methods described herein. In someexamples, aspects of the operations of 1535 may be performed by aconversation input generating component as described with reference toFIGS. 7 through 9.

At 1540, the analytical data store may calculate similarity scoresbetween the conversation input vector and at least one intent vectorcorresponding to each intent category. The operations of 1540 may beperformed according to the methods described herein. In some examples,aspects of the operations of 1540 may be performed by a vectorcomparison component as described with reference to FIGS. 7 through 9.

At 1545, the analytical data store may identify an intent category ofthe set of intent categories corresponding to the intent vector having ahighest similarity score with the conversation input vector. Theoperations of 1545 may be performed according to the methods describedherein. In some examples, aspects of the operations of 1545 may beperformed by an intent categorization component as described withreference to FIGS. 7 through 9.

A method of intent classification is described. The method may includegenerating, using a word embedding function, an intent classificationmodel including a set of input vectors corresponding to a corpus ofunclassified conversation data received at an interactive conversationagent, receiving a set of intent categories and at least one intent seedinput for each intent category in the set of intent categories,generating, using the word embedding function and the intentclassification model, at least one intent vector corresponding to eachintent category in the set of intent categories, where the intent vectorgenerated for each intent category is based on the at least one intentseed input corresponding to the respective intent category, receiving aconversation input including a text string at an instance of theinteractive conversation agent, generating, using the word embeddingfunction and the intent classification model, a conversation inputvector based on the conversation input, calculating similarity scoresbetween the conversation input vector and each intent vectorcorresponding to each intent category, and identifying an intentcategory of the set of intent categories corresponding to the intentvector having a highest similarity score with the conversation inputvector.

An apparatus for intent classification is described. The apparatus mayinclude a processor, memory in electronic communication with theprocessor, and instructions stored in the memory. The instructions maybe executable by the processor to cause the apparatus to generate, usinga word embedding function, an intent classification model including aset of input vectors corresponding to a corpus of unclassifiedconversation data received at an interactive conversation agent, receivea set of intent categories and at least one intent seed input for eachintent category in the set of intent categories, generate, using theword embedding function and the intent classification model, at leastone intent vector corresponding to each intent category in the set ofintent categories, where the intent vector generated for each intentcategory is based on the at least one intent seed input corresponding tothe respective intent category, receive a conversation input including atext string at an instance of the interactive conversation agent,generate, using the word embedding function and the intentclassification model, a conversation input vector based on theconversation input, calculate similarity scores between the conversationinput vector and each intent vector corresponding to each intentcategory, and identify an intent category of the set of intentcategories corresponding to the intent vector having a highestsimilarity score with the conversation input vector.

Another apparatus for intent classification is described. The apparatusmay include means for generating, using a word embedding function, anintent classification model including a set of input vectorscorresponding to a corpus of unclassified conversation data received atan interactive conversation agent, receiving a set of intent categoriesand at least one intent seed input for each intent category in the setof intent categories, generating, using the word embedding function andthe intent classification model, at least one intent vectorcorresponding to each intent category in the set of intent categories,where the intent vector generated for each intent category is based onthe at least one intent seed input corresponding to the respectiveintent category, receiving a conversation input including a text stringat an instance of the interactive conversation agent, generating, usingthe word embedding function and the intent classification model, aconversation input vector based on the conversation input, calculatingsimilarity scores between the conversation input vector and each intentvector corresponding to each intent category, and identifying an intentcategory of the set of intent categories corresponding to the intentvector having a highest similarity score with the conversation inputvector.

A non-transitory computer-readable medium storing code for intentclassification is described. The code may include instructionsexecutable by a processor to generate, using a word embedding function,an intent classification model including a set of input vectorscorresponding to a corpus of unclassified conversation data received atan interactive conversation agent, receive a set of intent categoriesand at least one intent seed input for each intent category in the setof intent categories, generate, using the word embedding function andthe intent classification model, at least one intent vectorcorresponding to each intent category in the set of intent categories,where the intent vector generated for each intent category is based onthe at least one intent seed input corresponding to the respectiveintent category, receive a conversation input including a text string atan instance of the interactive conversation agent, generate, using theword embedding function and the intent classification model, aconversation input vector based on the conversation input, calculatesimilarity scores between the conversation input vector and each intentvector corresponding to each intent category, and identify an intentcategory of the set of intent categories corresponding to the intentvector having a highest similarity score with the conversation inputvector.

In some examples of the method, apparatuses, and non-transitorycomputer-readable medium described herein, generating the intentclassification model further may include operations, features, means, orinstructions for selecting a user input from the corpus of conversationdata as a context for a context-response pair for a set ofcontext-response pairs, selecting an agent input from the corpus ofconversation data as a response for the context-response pair, assigninga first value to a label corresponding to the context-response pair ifthe user input and the agent input are selected from a same conversationsession of the corpus of conversation data, assigning a second value tothe label corresponding to the context-response pair if the user inputand the agent input are selected from different conversation sessions ofthe corpus of conversation data, and training the intent classificationmodel on the set of context-response pairs.

Some examples of the method, apparatuses, and non-transitorycomputer-readable medium described herein may further includeoperations, features, means, or instructions for the first value beingassigned further based on the user input and the agent input beingselected from within a window in the same conversation session and thesecond value being assigned further based on the user input and theagent input being selected from outside the window in the sameconversation session.

In some examples of the method, apparatuses, and non-transitorycomputer-readable medium described herein, training the intentclassification model on the set of context-response pairs further mayinclude operations, features, means, or instructions for generating acontext vector for each context of the set of context-response pairs,generating a response vector for each response of the set ofcontext-response pairs, calculating similarity scores for eachcontext-response pair of the set of context-response pairs by comparingthe context vector and the response vector of each context-responsepair, and determining a loss for each context-response pair of the setof context-response pairs based at least on the similarity score and thelabel corresponding to each context-response pair of the set ofcontext-response pairs.

Some examples of the method, apparatuses, and non-transitorycomputer-readable medium described herein may further includeoperations, features, means, or instructions for receiving an additionalintent category and additional seed input corresponding to theadditional intent category, and generating, using the word embeddingfunction and the intent classification model, an additional intentvector based on the additional seed input.

Some examples of the method, apparatuses, and non-transitorycomputer-readable medium described herein may further includeoperations, features, means, or instructions for receiving an additionalconversation input at the interactive conversation agent, generating,using the word embedding function and the intent classification model,an additional conversation input vector, calculating similarity scoresbetween the additional conversation input vector and each intent vectorcorresponding to each intent category and the additional intent vectorcorresponding to the additional category, and identifying an intentcategory of the set of intent categories and the additional intentcategory corresponding to an intent vector or the additional intentvector having a highest similarity score with the additionalconversation input vector.

Some examples of the method, apparatuses, and non-transitorycomputer-readable medium described herein may further includeoperations, features, means, or instructions for separating the set ofinput vectors into set of clusters based on distance score calculationbetween each of the set of input vectors, and selecting at least oneinput vector from each cluster of the set of clusters, each of theselected input vectors corresponding to a suggested intent seed input,where one or more of the at least one intent seed input for each intentcategory in the set of intent categories may be selected from thesuggested intent seed inputs.

Some examples of the method, apparatuses, and non-transitorycomputer-readable medium described herein may further includeoperations, features, means, or instructions for transmitting anindication of each of the suggested intent seed inputs to a user device,wherein one or more of the at least one intent seed input for eachintent category in the set of intent categories are selected from thesuggested intent seed inputs at the user device.

Some examples of the method, apparatuses, and non-transitorycomputer-readable medium described herein may further includeoperations, features, means, or instructions for displaying the set ofinput vectors of the intent classification model on a user interface ofa user device.

In some examples of the method, apparatuses, and non-transitorycomputer-readable medium described herein, displaying the set of inputvectors of the intent classification model further may includeoperations, features, means, or instructions for projecting highdimensional input vectors into two-dimensional vectors, plotting thetwo-dimensional vectors on a graph, and displaying the graph at the userinterface of the user device.

In some examples of the method, apparatuses, and non-transitorycomputer-readable medium described herein, the set of intent categoriesincludes order status, return status, return issue, product issue,return label, or a combination thereof.

In some examples of the method, apparatuses, and non-transitorycomputer-readable medium described herein, determining the highestsimilarity score further may include operations, features, means, orinstructions for identifying the intent vector based on a nearestneighbor technique.

Some examples of the method, apparatuses, and non-transitorycomputer-readable medium described herein may further includeoperations, features, means, or instructions for receiving audio dataincluding voice data at the interactive conversation agent, andconverting the audio data into the conversation input including the textstring. It should be noted that the methods described herein describepossible implementations, and that the operations and the steps may berearranged or otherwise modified and that other implementations arepossible. Furthermore, aspects from two or more of the methods may becombined.

The description set forth herein, in connection with the appendeddrawings, describes example configurations and does not represent allthe examples that may be implemented or that are within the scope of theclaims. The term “exemplary” used herein means “serving as an example,instance, or illustration,” and not “preferred” or “advantageous overother examples.” The detailed description includes specific details forthe purpose of providing an understanding of the described techniques.These techniques, however, may be practiced without these specificdetails. In some instances, well-known structures and devices are shownin block diagram form in order to avoid obscuring the concepts of thedescribed examples.

In the appended figures, similar components or features may have thesame reference label. Further, various components of the same type maybe distinguished by following the reference label by a dash and a secondlabel that distinguishes among the similar components. If just the firstreference label is used in the specification, the description isapplicable to any one of the similar components having the same firstreference label irrespective of the second reference label.

Information and signals described herein may be represented using any ofa variety of different technologies and techniques. For example, data,instructions, commands, information, signals, bits, symbols, and chipsthat may be referenced throughout the above description may berepresented by voltages, currents, electromagnetic waves, magneticfields or particles, optical fields or particles, or any combinationthereof.

The various illustrative blocks and modules described in connection withthe disclosure herein may be implemented or performed with ageneral-purpose processor, a DSP, an ASIC, an FPGA or other programmablelogic device, discrete gate or transistor logic, discrete hardwarecomponents, or any combination thereof designed to perform the functionsdescribed herein. A general-purpose processor may be a microprocessor,but in the alternative, the processor may be any conventional processor,controller, microcontroller, or state machine. A processor may also beimplemented as a combination of computing devices (e.g., a combinationof a digital signal processor (DSP) and a microprocessor, multiplemicroprocessors, one or more microprocessors in conjunction with a DSPcore, or any other such configuration).

The functions described herein may be implemented in hardware, softwareexecuted by a processor, firmware, or any combination thereof. Ifimplemented in software executed by a processor, the functions may bestored on or transmitted over as one or more instructions or code on acomputer-readable medium. Other examples and implementations are withinthe scope of the disclosure and appended claims. For example, due to thenature of software, functions described herein can be implemented usingsoftware executed by a processor, hardware, firmware, hardwiring, orcombinations of any of these. Features implementing functions may alsobe physically located at various positions, including being distributedsuch that portions of functions are implemented at different physicallocations. Also, as used herein, including in the claims, “or” as usedin a list of items (for example, a list of items prefaced by a phrasesuch as “at least one of” or “one or more of”) indicates an inclusivelist such that, for example, a list of at least one of A, B, or C meansA or B or C or AB or AC or BC or ABC (i.e., A and B and C). Also, asused herein, the phrase “based on” shall not be construed as a referenceto a closed set of conditions. For example, an exemplary step that isdescribed as “based on condition A” may be based on both a condition Aand a condition B without departing from the scope of the presentdisclosure. In other words, as used herein, the phrase “based on” shallbe construed in the same manner as the phrase “based at least in parton.”

Computer-readable media includes both non-transitory computer storagemedia and communication media including any medium that facilitatestransfer of a computer program from one place to another. Anon-transitory storage medium may be any available medium that can beaccessed by a general purpose or special purpose computer. By way ofexample, and not limitation, non-transitory computer-readable media cancomprise RAM, ROM, electrically erasable programmable read only memory(EEPROM), compact disk (CD) ROM or other optical disk storage, magneticdisk storage or other magnetic storage devices, or any othernon-transitory medium that can be used to carry or store desired programcode means in the form of instructions or data structures and that canbe accessed by a general-purpose or special-purpose computer, or ageneral-purpose or special-purpose processor. Also, any connection isproperly termed a computer-readable medium. For example, if the softwareis transmitted from a website, server, or other remote source using acoaxial cable, fiber optic cable, twisted pair, digital subscriber line(DSL), or wireless technologies such as infrared, radio, and microwave,then the coaxial cable, fiber optic cable, twisted pair, digitalsubscriber line (DSL), or wireless technologies such as infrared, radio,and microwave are included in the definition of medium. Disk and disc,as used herein, include CD, laser disc, optical disc, digital versatiledisc (DVD), floppy disk and Blu-ray disc where disks usually reproducedata magnetically, while discs reproduce data optically with lasers.Combinations of the above are also included within the scope ofcomputer-readable media.

The description herein is provided to enable a person skilled in the artto make or use the disclosure. Various modifications to the disclosurewill be readily apparent to those skilled in the art, and the genericprinciples defined herein may be applied to other variations withoutdeparting from the scope of the disclosure. Thus, the disclosure is notlimited to the examples and designs described herein, but is to beaccorded the broadest scope consistent with the principles and novelfeatures disclosed herein.

What is claimed is:
 1. A method for intent classification, comprising:generating, using a word embedding function, an intent classificationmodel including a plurality of input vectors corresponding to a corpusof unclassified conversation data received at an interactiveconversation agent; receiving a set of intent categories and at leastone intent seed input for each intent category in the set of intentcategories; generating, using the word embedding function and the intentclassification model, at least one intent vector corresponding to eachintent category in the set of intent categories, wherein the intentvector generated for each intent category is based at least in part onthe at least one intent seed input corresponding to the respectiveintent category; receiving a conversation input comprising a text stringat an instance of the interactive conversation agent; generating, usingthe word embedding function and the intent classification model, aconversation input vector based on the conversation input; calculatingsimilarity scores between the conversation input vector and each intentvector corresponding to each intent category; and identifying an intentcategory of the set of intent categories corresponding to the intentvector having a highest similarity score with the conversation inputvector.
 2. The method of claim 1, wherein generating the intentclassification model further comprises: selecting a user input from thecorpus of conversation data as a context for a context-response pair fora set of context-response pairs; selecting an agent input from thecorpus of conversation data as a response for the context-response pair;assigning a first value to a label corresponding to the context-responsepair if the user input and the agent input are selected from a sameconversation session of the corpus of conversation data; assigning asecond value to the label corresponding to the context-response pair ifthe user input and the agent input are selected from differentconversation sessions of the corpus of conversation data; and trainingthe intent classification model on the set of context-response pairs. 3.The method of claim 2, wherein the first value is assigned further basedon the user input and the agent input being selected from within awindow in the same conversation session and the second value is assignedfurther based on the user input and the agent input being selected fromoutside the window in the same conversation session.
 4. The method ofclaim 2, wherein training the intent classification model on the set ofcontext-response pairs further comprises: generating a context vectorfor each context of the set of context-response pairs; generating aresponse vector for each response of the set of context-response pairs;calculating similarity scores for each context-response pair of the setof context-response pairs by comparing the context vector and theresponse vector of each context-response pair; and determining a lossfor each context-response pair of the set of context-response pairsbased at least on the similarity score and the label corresponding toeach context-response pair of the set of context-response pairs.
 5. Themethod of claim 1, further comprising: receiving an additional intentcategory and additional seed input corresponding to the additionalintent category; and generating, using the word embedding function andthe intent classification model, an additional intent vector based onthe additional seed input.
 6. The method of claim 5, further comprising:receiving an additional conversation input at the interactiveconversation agent; generating, using the word embedding function andthe intent classification model, an additional conversation inputvector; calculating similarity scores between the additionalconversation input vector and each intent vector corresponding to eachintent category and the additional intent vector corresponding to theadditional category; and identifying an intent category of the set ofintent categories and the additional intent category corresponding tothe intent vector or the additional intent vector having a highestsimilarity score with the additional conversation input vector.
 7. Themethod of claim 1, further comprising: separating the plurality of inputvectors into set of clusters based on distance score calculation betweeneach of the plurality of input vectors; and selecting at least one inputvector from each cluster of the set of clusters, each of the selectedinput vectors corresponding to a suggested intent seed input, whereinone or more of the at least one intent seed input for each intentcategory in the set of intent categories are selected from the suggestedintent seed inputs.
 8. The method of claim 7, further comprising:transmitting an indication of each of the suggested intent seed inputsto a user device, wherein one or more of the at least one intent seedinput for each intent category in the set of intent categories areselected from the suggested intent seed inputs at the user device. 9.The method of claim 1, further comprising: displaying the plurality ofinput vectors of the intent classification model on a user interface ofa user device.
 10. The method of claim 9, wherein displaying theplurality of input vectors of the intent classification model furthercomprises: projecting high dimensional input vectors intotwo-dimensional vectors; plotting the two-dimensional vectors on agraph; and displaying the graph at the user interface of the userdevice.
 11. The method of claim 1, wherein the set of intent categoriesincludes order status, return status, return issue, product issue,return label, or a combination thereof.
 12. The method of claim 1,wherein the at least one intent seed input is based on an input receivedat the interactive conversation agent.
 13. The method of claim 1,wherein determining the highest similarity score further comprises:identifying the intent vector based on a nearest neighbor technique. 14.The method of claim 1, further comprising: receiving audio datacomprising voice data at the interactive conversation agent; andconverting the audio data into the conversation input comprising thetext string.
 15. An apparatus for intent classification, comprising: aprocessor, memory in electronic communication with the processor; andinstructions stored in the memory and executable by the processor tocause the apparatus to: generate, using a word embedding function, anintent classification model including a plurality of input vectorscorresponding to a corpus of unclassified conversation data received atan interactive conversation agent; receive a set of intent categoriesand at least one intent seed input for each intent category in the setof intent categories; generate, using the word embedding function andthe intent classification model, at least one intent vectorcorresponding to each intent category in the set of intent categories,wherein the intent vector generated for each intent category is based atleast in part on the at least one intent seed input corresponding to therespective intent category; receive a conversation input comprising atext string at an instance of the interactive conversation agent;generate, using the word embedding function and the intentclassification model, a conversation input vector based on theconversation input; calculate similarity scores between the conversationinput vector and each intent vector corresponding to each intentcategory; and identify an intent category of the set of intentcategories corresponding to the intent vector having a highestsimilarity score with the conversation input vector.
 16. The apparatusof claim 15, wherein the instructions to generate the intentclassification model further are executable by the processor to causethe apparatus to: select a user input from the corpus of conversationdata as a context for a context-response pair for a set ofcontext-response pairs; select an agent input from the corpus ofconversation data as a response for the context-response pair; assign afirst value to a label corresponding to the context-response pair if theuser input and the agent input are selected from a same conversationsession of the corpus of conversation data; assign a second value to thelabel corresponding to the context-response pair if the user input andthe agent input are selected from different conversation sessions of thecorpus of conversation data; and; and train the intent classificationmodel on the set of context-response pairs.
 17. The apparatus of claim16, wherein the first value is assigned further based on the user inputand the agent input being selected from within a window in the sameconversation session and the second value is assigned further based onthe user input and the agent input being selected outside the window inthe same conversation session.
 18. The apparatus of claim 16, whereinthe instructions to train the intent classification model on the set ofcontext-response pairs further are executable by the processor to causethe apparatus to: generate a context vector for each context of the setof context-response pairs; generate a response vector for each responseof the set of context-response pairs; calculate similarity scores foreach context-response pair of the set of context-response pairs bycomparing the context vector and the response vector of eachcontext-response pair; and determine a loss for each context-responsepair of the set of context-response pairs based at least on thesimilarity score and the label corresponding to each context-responsepair of the set of context-response pairs.
 19. The apparatus of claim 15wherein the instructions are further executable by the processor tocause the apparatus to: receive an additional intent category andadditional seed input corresponding to the additional intent category;and generate, using the word embedding function and the intentclassification model, an additional intent vector based on theadditional seed input.
 20. A non-transitory computer-readable mediumstoring code for intent classification, the code comprising instructionsexecutable by a processor to: generate, using a word embedding function,an intent classification model including a plurality of input vectorscorresponding to a corpus of unclassified conversation data received atan interactive conversation agent; receive a set of intent categoriesand at least one intent seed input for each intent category in the setof intent categories; generate, using the word embedding function andthe intent classification model, at least one intent vectorcorresponding to each intent category in the set of intent categories,wherein the intent vector generated for each intent category is based atleast in part on the at least one intent seed input corresponding to therespective intent category; receive a conversation input comprising atext string at an instance of the interactive conversation agent;generate, using the word embedding function and the intentclassification model, a conversation input vector based on theconversation input; calculate similarity scores between the conversationinput vector and each intent vector corresponding to each intentcategory; and identify an intent category of the set of intentcategories corresponding to the intent vector having a highestsimilarity score with the conversation input vector.
 21. Thenon-transitory computer-readable medium of claim 20, wherein theinstructions to generate the intent classification model further areexecutable to: select a user input from the corpus of conversation dataas a context for a context-response pair for a set of context-responsepairs; select an agent input from the corpus of conversation data as aresponse for the context-response pair; assign a first value to a labelcorresponding to the context-response pair if the user input and theagent input are selected from a same conversation session of the corpusof conversation data; assign a second value to the label correspondingto the context-response pair if the user input and the agent input areselected from different conversation sessions of the corpus ofconversation data; and n; and train the intent classification model onthe set of context-response pairs.
 22. The non-transitorycomputer-readable medium of claim 21, wherein the first value isassigned further based on the user input and the agent input beingselected from within a window in the same conversation session and thesecond value is assigned further based on the user input and the agentinput being selected outside the window in the same conversation session23. The non-transitory computer-readable medium of claim 21, wherein theinstructions to train the intent classification model on the set ofcontext-response pairs further are executable to: generate a contextvector for each context of the set of context-response pairs; generate aresponse vector for each response of the set of context-response pairs;calculate similarity scores for each context-response pair of the set ofcontext-response pairs by comparing the context vector and the responsevector of each context-response pair; and determine a loss for eachcontext-response pair of the set of context-response pairs based atleast on the similarity score and the label corresponding to eachcontext-response pair of the set of context-response pairs.
 24. Thenon-transitory computer-readable medium of claim 20, wherein theinstructions are further executable to: receive an additional intentcategory and additional seed input corresponding to the additionalintent category; and generate, using the word embedding function and theintent classification model, an additional intent vector based on theadditional seed input.
 25. The non-transitory computer-readable mediumof claim 24, wherein the instructions are further executable to: receivean additional conversation input at the interactive conversation agent;generate, using the word embedding function and the intentclassification model, an additional conversation input vector; calculatesimilarity scores between the additional conversation input vector andeach intent vector corresponding to each intent category and theadditional intent vector corresponding to the additional category; andidentify an intent category of the set of intent categories and theadditional intent category corresponding to the intent vector or theadditional intent vector having a highest similarity score with theadditional conversation input vector.